public class test {
    public static void main(String[] args) {
        int[] cur = {1,2,3,2,2};
        Demo demo = new Demo();
        int a =demo.totalFruit(cur);
        System.out.println(a);
    }
}
